<% content_for :sidebar do -%>
  <% if logged_in? && current_user.is_admin? -%>
    <p><%= link_to "编辑", edit_book_url(@book.id) %></p>
    <p><%= link_to "删除", book_url(@book.id), :method => :delete, :confirm => "确定删除？" %></p>
    <p><%= link_to "返回图书管理面板", book_manage_url %></p>
  <% end -%>
<% end -%>

<h1><%= h @book.title %></h1>
<div style="float:left;margin:10px">
  <%= image_tag @book.book_cover.public_filename(:large) %>
</div>
<p><label for="book_subtitle">副标题：</label><%= h @book.subtitle %></p>
<p><label for="book_author">作者：</label><%= h @book.author %></p>
<p><label for="book_publisher">出版社：</label><%= h @book.publisher %></p>
<p><label for="book_isbn">ISBN：</label><%= h @book.isbn %></p>
<div class="clear">
</div>
<%= @book.description_html %>